package farmer.gui;

import java.awt.Graphics2D;

import core.gui.GlassPane;
import farmer.game.MainGameState;

public class MainGameGUI {
	
	private GlassPane glassPane;
	
	private MainGameButton up;
	private MainGameButton down;
	private MainGameButton left;
	private MainGameButton right;
	private MainGameButton zoomIn;
	private MainGameButton zoomOut;
	
	public MainGameGUI(MainGameState state){
		glassPane = state.getGlassPane();
		
		up = new MainGameButton("\u2191", state, MainGameButton.Up);
		down = new MainGameButton("\u2193", state, MainGameButton.Down);
		left = new MainGameButton("\u2190", state, MainGameButton.Left);
		right = new MainGameButton("\u2192", state, MainGameButton.Right);
		zoomIn = new MainGameButton("+", state, MainGameButton.ZoomIn);
		zoomOut = new MainGameButton("-", state, MainGameButton.ZoomOut);
		
		glassPane.addComponent(up);
		up.setPosition(720, 520);
		glassPane.addComponent(down);
		down.setPosition(720, 560);
		glassPane.addComponent(left);
		left.setPosition(680, 560);
		glassPane.addComponent(right);
		right.setPosition(760, 560);
		glassPane.addComponent(zoomIn);
		zoomIn.setPosition(760, 520);
		glassPane.addComponent(zoomOut);
		zoomOut.setPosition(680, 520);
	}

	public void draw(Graphics2D g) {
		//glassPane.draw(g);
	}

}
